package cn.south.campus.admin.campus.mapper;

import cn.south.campus.admin.campus.model.entity.Complaint;
import cn.south.campus.admin.campus.model.req.ComplaintReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 校园吐槽表 Mapper 接口
 * </p>
 *
 * @author chow
 * @since 2024-12-05
 */
public interface ComplaintMapper extends BaseMapper<Complaint> {

    PageDTO<Complaint> pageQuery(PageDTO<Complaint> pageDto, @Param("req") ComplaintReq query);

    Complaint detail(Long id, Integer status);
}
